﻿@model MobilnyDostawca.ViewModels.PrzesylkiChangeViewModel

@{
    ViewBag.Title = "Zmiana statusu";
}

<h2>Zmiana statusu</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Status przesyłki</legend>

        @Html.HiddenFor(model => model.ID)

        @*<div class="editor-label">
            @Html.LabelFor(model => model.Status, "Statusy")
        </div>
        <div class="editor-field">
            @Html.DropDownList("Status", String.Empty)
            @Html.ValidationMessageFor(model => model.Status)
        </div>*@
        <div class="editor-label">
            @Html.LabelFor(model => model.Status, "Statusy")
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(x => x.Status, new SelectList(Model.Statusy,"Value","Text"),string.Empty)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <p>
            <input type="submit" value="Zmień"/>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Wróć do listy", "Index")
</div>
